package com.iqiyi.pps.epg.core.model.record;

import com.iqiyi.pps.epg.core.model.base.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by karkarrotxu on 2018/4/11.
 */
@Entity
@Table(name = "record_col")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class RecordCol extends BaseEntity {
    private Long id;
    private String colName;
    private String channelName;
    private Long channelId;
    private Integer hasAuth;//有无版权
    private Integer hasPublic;//是否公开
    private Long categoryId;
    private String opUser;
    private Integer status;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "col_name")
    public String getColName() {
        return colName;
    }

    public void setColName(String colName) {
        this.colName = colName;
    }

    @Column(name = "channel_id")
    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    @Column(name = "has_auth")
    public Integer getHasAuth() {
        return hasAuth;
    }

    public void setHasAuth(Integer hasAuth) {
        this.hasAuth = hasAuth;
    }

    @Column(name = "has_public")
    public Integer getHasPublic() {
        return hasPublic;
    }

    public void setHasPublic(Integer hasPublic) {
        this.hasPublic = hasPublic;
    }

    @Column(name = "category_id")
    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    @Column(name = "op_user")
    public String getOpUser() {
        return opUser;
    }

    public void setOpUser(String opUser) {
        this.opUser = opUser;
    }

    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Column(name = "channel_name")
    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }
}
